﻿using Microsoft.EntityFrameworkCore;
using RBAC.LuFang.Domain;
using RBAC.LuFang.Repository.lnterface;
using System;
using System.Collections.Generic;
using System.Diagnostics.Metrics;
using System.Linq;
using System.Linq.Expressions;
using System.Text;
using System.Threading.Tasks;

namespace RBAC.LuFang.Repository.lmpl
{
    public class CountyRepository : BaseRepository<County>, ICountyRepository
    {
        public CountyRepository(EFCoreContext corecontext) : base(corecontext)
        {
        }

        public async Task<List<County>> Get(Expression<Func<County, bool>> expre)
        {
            return await base.Get(expre);
        }

        //添加
        public async Task<int> GetAddAsync(County t)
        {
            return await base.GetAddAsync(t);
        }

        //public IQueryable<T> GetAll()
        //{
        //    return _corecontext.Set<T>().AsQueryable();
        //}

        //显示
        public async Task<List<County>> GetAllAsync()
        {
            return await base.GetAllAsync();
        }
        //反填
        public async Task<County> GetByidAsync(int id)
        {
            return await base.GetByidAsync(id);
        }
        //修改
        public async Task<int> GetUpd(County t)
        {
            return await base.GetUpd(t);
        }














    }
}
